{% extends "base.html" %}

{% block title %}| Rank{% endblock %}

{% block body %}


<table class="sortable" align="center">
        <tr height=35> 
                <th class="righttop"> Rank </th>
                <th class="righttop"> Jogo </th>
                <th class="righttop"> Tem </th>
                <th class="righttop"> Tem (min. 1 trofeu) </th>
                <th class="righttop"> Tem Platina </th>
                <th class="righttop"> Trofeus </th>
                <th class="righttop"> Trofeus do Usuario </th>
                <th class="righttop"> Perc Platina</th>
        </tr>
{% for game_db, game_have, game_have_m, game_plat, game_trophy, game_user_trophy, game_plat_perc in game_rank %}
        <tr>
                <td align="center">{{ forloop.counter }} </td>
                <td width=150 align="center"><a href="/game/{{game_db.psn_id}}"><img src="/media/game/{{ game_db.psn_id }}/icon.png" width=150></a><br/> {{game_db.name|safe}} </td>
                <td align="center">{{game_have}}</td>
                <td align="center">{{game_have_m}}</td>
                <td align="center">{{game_plat}}</td>
                <td align="center">{{game_trophy}}</td>
                <td align="center">{{game_user_trophy}}</td>
                <td align="center">{{game_plat_perc}}</td>
        </tr>
{% endfor %}
</table>
<br/>
{% endblock %}
